<%@ page language="java" import="java.util.*" pageEncoding="UTF-8"%>
<%@ taglib prefix="s" uri="/struts-tags" %>
<%
String path = request.getContextPath();
String basePath = request.getScheme()+"://"+request.getServerName()+":"+request.getServerPort()+path+"/";
%>

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
  <head>
    <base href="<%=basePath%>">
    
    <title>My JSP 'Addcourse.jsp' starting page</title>
    
	<meta http-equiv="pragma" content="no-cache">
	<meta http-equiv="cache-control" content="no-cache">
	<meta http-equiv="expires" content="0">    
	<meta http-equiv="keywords" content="keyword1,keyword2,keyword3">
	<meta http-equiv="description" content="This is my page">
	

  </head>
  
  <body>
  <h1>添加课程</h1>
  <s:form action="./course/showtermandprofession!add.action" theme="simple">
 <span> 请选择学期:<s:select list="list" name="course.term.id" listKey="id" listValue="name"></s:select></span>
 <br /><br />
 <span> 请选择专业: <s:select list="#request.list2" name="course.profession.id" listKey="id" listValue="name"></s:select></span>
 <br /><br />
 <span> 课程名: <input type="text" name="course.name"/></span>
 <br /><br />
  <s:submit value="添加"></s:submit>
  </s:form>
  </body> 
</html>
